#ifndef CIZIK_H
#define CIZIK_H

#include <Fl/Fl_Box.h>
#include <Fl/fl_draw.h>
#include "node.h"

class Node;
class Cizik : public Fl_Box
{
    public:
        Cizik(int x1,int y1,int pid);
        virtual ~Cizik();
        void cizdir1();
        void cizdir2();
        void durdur(int xx,int yy);

        static void Timer_CB(void *userdata);
        static void Kontrol_CB(void *userdata);
        static void Kontrol2_CB(void *userdata);

        int xx1;
        int xx2;
        int yy1;
        int yy2;

        void nodeAll(Node *p);
        void nodeAl2(Node *p);
        Node * nodeVer1();
        Node * nodeVer2();

        void cFirst(int p);
        void cSecond(int p);
        void cId(int p);

        int cFirst();
        int cSecond();
        int cId();
        int deger;
        Node *nn;
    protected:
        void draw();
    private:
        Node *n1;
        Node *n2;
        int first;
        int second;
        int id;
};

#endif // CIZIK_H
